<script>

    let arr=[11,22,33,44,55]

    // 生成一个指针对象
    let  ite=arr[Symbol.iterator]()


    console.log(ite.next());//{value: 11, done: false}
    console.log(ite.next());//{value: 22, done: false}
    console.log(ite.next());//{value: 33, done: false}
    console.log(ite.next());//{value: 44, done: false}
    console.log(ite.next());//{value: 55, done: false}
    console.log(ite.next());//{value: undefined, done: true}
    console.log(ite.next());//{value: undefined, done: true}



</script>